<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>list</title>
[#include "/admin/include/head.htm"]
<script type="text/javascript">
    var grid;
    $(function () {
        grid = $("#maingrid").ligerGrid({
            columns: [
				{display: '购买者', name: 'memberName', align: 'center', width: 100},
				{display: '产品名称', name: 'productName', align: 'center', width: 300},
				{display: '规格', name: 'productSpec', align: 'center', width: 120},
				{display: '销售价（元）', name: 'taxPrice', align: 'center', width: 100},
				{display: '数量', name: 'quantity', align: 'center', width: 60},
				{display: '销售地区', name: 'sellArea', align: 'center',width: 120},
				{display: '销售时间', name: 'turnoverTime', align: 'center', width: 150},
				{display: '批号', name: 'batch', align: 'center', width: 120},
				{display: '有效期', name: 'vDate', align: 'center', width: 150},
				{display: '生产厂家', name: 'manufacturer', align: 'center', width: 200}
			],  pageSize:20, url: '${base}/admin/b2c/supervise/${type}/queryData.jhtml',
			toolbar: {}, width: '100%', height:'100%', enabledSort: true
        });
        $("#pageloading").hide();
		LG.loadToolbar(grid);
		
		//绑定搜索按钮
		LG.search(grid);
		
		
		$(".areaSelect").lSelect({
			url: "${base}/common/area.jhtml"// Json数据获取url
		});
    });
	
	function download(){
		jQuery.ligerDialog.confirm('是否根据当前查询条件进行下载？', function (confirm) {
			if(confirm){
				var url = "${base}/admin/b2c/supervise/${type}/download.jhtml?"; 
				$("input").each(function(index,item){
					if(item.value){
						url += "&" + item.name + "=" + item.value;
					}
				});
				window.open(url);
			}
		});
	}
</script>
</head>
<body style="padding:10px; overflow:hidden;">
	<div id="functions">
		<div class="clearfix">
			<div style="float:left;">
				<span>
					购&nbsp;&nbsp;买&nbsp;&nbsp;者：<input type="text" class="formText" name="search_LIKE_bm.name"/>
				</span>
				<span>
					产品名称：<input type="text" class="formText" name="search_LIKE_bean.productName"/>
				</span>
				<span>
					产品注册证号：<input type="text" class="formText" name="search_LIKE_bean.authorizeNumber"/>
				</span>
				<span>
					批号：<input type="text" class="formText" name="search_EQ_bean.batch"/>
				</span>
				<input type="button" id="search" class="button" value="搜索"/>
				<a href="#" id="search_btn_reset" face="Wingdings 3">解除搜索,显示全部数据</a>
				<br />
				<span>
					生产厂商：<input type="text" class="formText" name="search_LIKE_bean.manufacturer"/>
				</span>
				<span>
					销售时间：<input type="text" id="startDate" name="search_GE_bean.turnoverTime" 
						 class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
						 -
						 <input type="text" id="endDate" name="search_LE_bean.turnoverTime" 
						 class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
				</span>
				<span>
					销售地区：<input type="hidden" name="search_EQ_bo.areaId" treePath="" class="input1 areaSelect" />
				</span>
			</div>
		</div>
	</div>
	<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>